<?php
/**
 * Created by PhpStorm.
 * User: ljwaheng
 * Date: 2018/6/16
 * Time: 23:04
 */
namespace app\controllers;

use yii\web\Controller;
use app\models\Product;

class ProductController extends  Controller{

    public $layout = false;

    /**
     * 商品列表页
     * @return view
     */
    public function actionIndex()
    {
        $this->layout = 'layouts2';
        return $this->render('index');
    }

    /**
     * 商品详情页
     */
    public function actionDetail ()
    {
        $this->layout = 'layouts2';
        return $this->render(detail);
    }



}